<html>
<aside id="sidebar" class="column">
		<h3>Menu Principal</h3>
		<ul class="toggle">
			<li class="icn_edit_article"><a href="indexMDsalida.php">Salida de Articulos</a></li>
			<li class="icn_categories"><a href="indexCrudRptSalidas.php">Reporte de Salidas</a></li>
		</ul>	
</aside><!-- end of sidebar -->
<section id="main" class="column">
<?php if($msg!=""){ ?>
	<h4 class="alert_info"><?php echo $msg ?></h4>
<?php } ?>
<br>
<form action="indexCrudRptSalidas.php">
<table width="95%" border="0" align="center">
  <tr>
    <td width="13%">Fecha inicio: </td>
    <td width="24%"><input name="date1" type="text" id="date1" value="<?php echo @$_REQUEST['date1'] ?>" readonly="true">
      <a href="javascript:NewCal('date1','ddmmmyyyy',true,24)">
	  <img src="images/cal.gif" width="16" height="16" border="0"></a></td>
    <td width="63%"><input name="controlador" type="submit"  value="Buscar"></td>
  </tr>
  <tr>
    <td>Fecha final: </td>
    <td><input name="date2" type="text" id="date2" value="<?php echo @$_REQUEST['date2'] ?>" readonly="true">
	<a href="javascript:NewCal('date2','ddmmmyyyy',true,24)">
      <img src="images/cal.gif" width="16" height="16" border="0"></a></td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
<br>
<table cellpadding="2" cellspacing="2" width="95%" align="center" border="1" bgcolor="#EBEBEB" bordercolor="#FFFFFF"  style="border-collapse:collapse; border-style:solid;">
    <tr>
      <td bgcolor="#CCCCCC"><strong>
      Id
      </strong></td>
      <td bgcolor="#CCCCCC"><strong>
      Fecha de Salida
      </strong></td>
      <td bgcolor="#CCCCCC"><strong>
      No. Folio
      </strong></td>
      <td bgcolor="#CCCCCC"><strong>Entreg&oacute;</strong></td>
      <td bgcolor="#CCCCCC"><strong> Recibi&oacute; </strong></td>
      <td bgcolor="#CCCCCC"><strong>Ultima modificaci&oacute;n </strong>
      <td colspan="2" bgcolor="#CCCCCC"><strong>
      Opciones</strong><strong></strong>    </td>
    </tr>
    <?php
    if (@$datos)
    foreach ($datos as $key => $row) //Associative array $key = table, $row = row of $key
    {
    ?>
    <tr>
      <td align="left">
        <?php echo $row['Salida_Id'] ?>      </td>
      <td align="left">
        <?php echo $row['SalidaFecha'] ?>      </td>
      <td align="left">
        <?php echo $row['SalidaNumeroFolio'] ?>      </td>
      <td align="left"><?php echo $row['Usuario_Id'] ?></td>
      <td align="left"><?php echo $row['Empleado_Id'] ?> </td>
      <td align="left">
        <?php echo $row['FechaHoraUltimaModificacion'] ?>      </td>
      <td align="left">
      	<a href="indexCrudRptSalidas.php?controlador=borrar&id=<?php echo $row['Salida_Id'] ?>"><img src="images/icn_trash.png" width="16" height="14" border="0" alt="Eliminar registro"></a>      </td>
      <td align="left">
      	<a href="indexCrudRptSalidas.php?controlador=detalle&id=<?php echo $row['Salida_Id'] ?>"><img src="images/icn_categories.png" width="16" height="16" border="0" alt="Detalles registro"></a>      </td>
    </tr>
    <?php } //end foreach loop
	?>
</table>
</section>
</html>